package com.supply.dl.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.widget.EditText;
import android.widget.TextView;

import com.aspsine.swipetoloadlayout.SwipeToLoadLayout;
import com.supply.dl.R;
import com.supply.dl.widget.adapter.CheckCartAdapter;

import butterknife.BindView;

/**
 * 车辆检查
 * item item_check_cart
 */
public class CheckCartActivity extends BaseActivity {

    @BindView(R.id.common_search_main_searchContentEdt)
    EditText editSearch;

    @BindView(R.id.common_search_main_searchTv)
    TextView txtSearch;

    @BindView(R.id.swipe_target)
    RecyclerView recyclerView;

    @BindView(R.id.swipeToLoadLayout)
    SwipeToLoadLayout swipeToLoadLayout;

    private int currentPageNum = 1;
    private boolean hasMoreData = true;

    private CheckCartAdapter checkCartAdapter;

    @Override
    protected int getLayoutResource() {
        return R.layout.activity_check_cart;
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        showLeftBack();
        setTitleShow(getResourcesString(R.string.check_cart));
        recyclerView.setLayoutManager(new LinearLayoutManager(this));
        checkCartAdapter = new CheckCartAdapter(this);
        recyclerView.setAdapter(checkCartAdapter);
    }
}
